/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-03-12     73554       the first version
 */
#ifndef DRIVERS_INCLUDE_CONFIG_USER_CONFIG_H_
#define DRIVERS_INCLUDE_CONFIG_USER_CONFIG_H_


#include <rtthread.h>

#include <drv_common.h>


typedef union
{
    uint8_t   datau8[8];
    int16_t  datai16;
    uint16_t  datau16;
    int32_t   datai32;
    uint32_t  datau32;
    float     dataf;
    double    datad;
    uint64_t  datau64;
}int_float;


typedef struct
{
    int     RxLen                    ; //串口接收长度
    int     ConnTimeoutFlag          ; //连接超时标志
    int     IrqFlag                  ; //中断标志       1：中断、 0：无
} Uart_data_type;
extern Uart_data_type g_Uart4RxData_s;




extern void MX_ADC1_Init(void);
extern void MX_DMA_Init(void);


extern int G_InitADCThread_i32();

extern void QLED_Ctrl(int sta);

extern rt_err_t g_GetADCData();




#endif /* DRIVERS_INCLUDE_CONFIG_USER_CONFIG_H_ */
